package com.ideafactory.client.utils.versioncontrol;


import android.content.Context;

import com.ideafactory.client.utils.CommonUtils;
import com.ideafactory.client.ybservice.APP;

/**
 * Created by Administrator on 2015/12/8.
 */
public class UpdateVersionControl {

    private Context context;
    private UpdateManager updateManager;

    private static UpdateVersionControl updateVersionControl;
    public static UpdateVersionControl getInstance(){
        if(updateVersionControl == null){
            updateVersionControl = new UpdateVersionControl();
        }
        return updateVersionControl;
    }

    public UpdateVersionControl(){
        context = APP.getAPP();
    }

    //推送更新
    public void checkUpdate(){
        updateManager = new UpdateManager(context);
        updateManager.checkUpdateInfo(CommonUtils.getVersionName());
    }




}
